home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 5
/
Amiga Plus Sonderheft 1996 #5.iso
/
programme
/
raystrom_v1.2
/
examples
/
arexx
/
im_texture.ray
< prev
next >
Wrap
Text File
|
1987-01-15
|
788b
|
45 lines
/***************
* NAME: im_texture.ray
* DESCRIPTION: This ARexx-programm demonstrates imagine texture mapping
* AUTHORS: Andreas Heumann
***************/
signal on error
options results
IF ~show('P','RAYSTORM') THEN DO
address COMMAND 'run >NIL: <NIL: /RayStorm'
address COMMAND WaitForPort RAYSTORM
END
address RAYSTORM
'TEXTUREPATH imagine:textures'
'SETSCREEN 100 100'
'SETCAMERA <0,0,-150> <0,0,0> <0,1,0> 45 45'
'SETWORLD [0,0,0] [100,100,100]'
'POINTLIGHT <100,100,-150>'
'NEWSURFACE MAP'
'IMTEXTURE frogskin.itx <0,0,0> <0,0,0> <32,32,32>'
'SPECULAR [0,0,0]'
'DIFFUSE [255,255,0]'
'PLANE MAP <0,0,0> <0,0,1>'
'STARTRENDER QUICK'
'SAVEPIC im_texture.iff'
'CLEANUP'
exit 0
error:
say "Error" rc "in line" sigl ":"
GETERRORSTR rc
say result
exit 0